package cn.zymall.goods.service.impl;

import cn.zymall.common.model.Kinds;
import cn.zymall.goods.mapper.KindsMapper;
import cn.zymall.goods.service.KindsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lxh
 * @Description 商品分类业务层接口实现类
 * @date 2020/8/18 9:52
 * @Classname KindsServiceImpl
 **/
@Service
public class KindsServiceImpl extends ServiceImpl<KindsMapper,Kinds> implements KindsService {

	@Autowired
	private KindsMapper kindsMapper;

	@Override
	public List<Kinds> findAll() {
		return kindsMapper.findAll();
	}

	@Override
	public void add(Kinds kinds) {
		kindsMapper.add(kinds);
	}

	@Override
	public void amend(Kinds kinds) {
		kindsMapper.amend(kinds);
	}

	@Override
	public void del(Kinds kinds) {
		kindsMapper.del(kinds);
	}

	@Override
	public List<Kinds> findAllKinds() {
		return kindsMapper.findAllKinds();
	}
}
